package cn.hxzy.service.impl;

import cn.hxzy.domain.TaskManager;
import cn.hxzy.mapper.TaskManagerMapper;
import cn.hxzy.service.TaskManagerService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author niuyi
 * @since 2024-06-22
 */
@Service
public class TaskManagerServiceImpl extends ServiceImpl<TaskManagerMapper, TaskManager> implements TaskManagerService {

    @Autowired
    private TaskManagerMapper taskManagerMapper;

    @Override
    public List<TaskManager> getTaskManagerList(Integer userId) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("student_id",userId);
        List<TaskManager> list = taskManagerMapper.selectList(queryWrapper);
        return list;
    }
}
